package cn.stylefeng.guns.modular.xlb.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.basic.entity.BasicCustomer;
import cn.stylefeng.guns.modular.rest.xlbapi.vo.SyncDepartOrderIby;
import cn.stylefeng.guns.modular.xlb.entity.XlbApiDepartOrder;
import cn.stylefeng.guns.modular.xlb.model.params.XlbApiDepartOrderParam;
import cn.stylefeng.guns.modular.xlb.model.result.XlbApiDepartOrderResult;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 同步发车单信息 服务类
 * </p>
 *
 * @author zhangzh
 * @since 2025-06-17
 */
public interface XlbApiDepartOrderService extends IService<XlbApiDepartOrder> {

    /**
     * 新增
     *
     * @author zhangzh
     * @Date 2025-06-17
     */
    void add(XlbApiDepartOrderParam param);

    /**
     * 删除
     *
     * @author zhangzh
     * @Date 2025-06-17
     */
    void delete(XlbApiDepartOrderParam param);

    /**
     * 更新
     *
     * @author zhangzh
     * @Date 2025-06-17
     */
    void update(XlbApiDepartOrderParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhangzh
     * @Date 2025-06-17
     */
    XlbApiDepartOrderResult findBySpec(XlbApiDepartOrderParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhangzh
     * @Date 2025-06-17
     */
    List<XlbApiDepartOrderResult> findListBySpec(XlbApiDepartOrderParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhangzh
     * @Date 2025-06-17
     */
     LayuiPageInfo findPageBySpec(XlbApiDepartOrderParam param, String condition);


    ResponseData syncDepartOrder(SyncDepartOrderIby syncDepartOrderIby, BasicCustomer basicCustomer);

}
